let user = {};
$.ajax({
  type: "method",
  url: "url",
  data: "data",
  dataType: "dataType",
  success: function (response) {
    user.username = response.username;
  },
});
